const express = require("express")
const path = require("path")
const app = express()

app.use(express.static(path.join(__dirname, "public")))

app.get("/ajax", (req,res) => {
    res.send("hello ajax")
})

let server = app.listen(3000, ()=>{
    console.log("服务运行在3000端口");
})